/*
 * 作者: junmu
 * 时间: 2025-07-22
 */
package com.hzbc.faceattendance.service;

import com.hzbc.faceattendance.model.AdminUser;
import com.hzbc.faceattendance.model.AttendanceRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Date;
import java.util.List;

public interface IAttendanceService {
    Page<AttendanceRecord> getAllRecords(Date startDate, Date endDate, String keyword, Pageable pageable);
    Page<AttendanceRecord> getEnteredRecords(Date startDate, Date endDate, String keyword,Pageable pageable);
    Page<AttendanceRecord> getLeftRecords(String keyword,Date startDate, Date endDate, Pageable pageable);
    java.util.List<AdminUser> getAbsentRecords(Date date, Long classId);
    List<AttendanceRecord> getAttendanceRecordsByDate(Date date);
    byte[] exportAttendanceReport(Date date) throws Exception;

    AttendanceRecord save(AttendanceRecord attendanceRecord);

    AttendanceRecord findRecordByNameAndStatus(String whiteName, Integer status);
}